#pragma once

#include "../StdAfx.h"
#include "../resource.h"
#include "afxwin.h"

// CNewItemDlg dialog

class CNewItemDlg : public CDialog
{
	DECLARE_DYNAMIC(CNewItemDlg)

public:
	CNewItemDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CNewItemDlg();

// Dialog Data
	enum { IDD = IDD_DLG_INSITEM };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
protected:
	virtual void OnOK();
	virtual void OnCancel();
public:
	afx_msg void OnBnClickedFile();
	afx_msg void OnBnClickedDir();
	CWnd *m_wndPar;
	BOOL m_bFile;
	BOOL m_bDir;
	CString m_sTitle;
	CString m_sFile;
	CString m_sDir;
	bool m_bHandle;
	void Init(CRect rect);
protected:
	CButton m_btnFile;
	CButton m_btnDir;
	CEdit m_editTitle;
	CEdit m_editFile;
	CEdit m_editDir;
	CComboBox m_listType;
	CToolTipCtrl m_toolTip;
public:
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
	virtual BOOL OnInitDialog();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnClose();
};
